package Classes.Items 
{
	import flash.geom.Point;
	import net.flashpunk.Entity;
	import net.flashpunk.graphics.Image;
	
	/**
	 * ...
	 * @author Alex
	 */
	public class Item extends Entity
	{
		private var m_pic:Image;
		private var m_currentLocation:Point;
		
		public function Item(startLocation:Point) 
		{
			
			m_currentLocation = startLocation;
			setLocation(m_currentLocation);
		}
		
		public function setImage(image:Image):void
		{
			m_pic = image;
			graphic = m_pic;
		}
		public function setLocation(newLocation:Point):void
		{
			m_currentLocation = newLocation;
			this.x = m_currentLocation.x;
			this.y = m_currentLocation.y;
		}
	}
	
}